import { MidwayConfig } from '@midwayjs/core';

export default {
  // use for cookie sign key, should change to your own and keep security
  keys: '1647745910089_3207',
  koa: {
    port: 7001,
  },
  midwayLogger :{
    default: {
      level: 'warn',
      consoleLevel: 'info'
    }
  },
  security :{
    csrf: {
      enable: false
    },
    domainWhiteList: ['*']
  },
  cors: {
    origin: '*',
    credentials: false,
  },
  orm:{
    type: 'mysql',
    host: '82.157.172.8',
    port: 3306,
    username: 'root',
    password: 'Lize681228',
    database: 'midadmin',
    synchronize: false, // 如果第一次使用，不存在表，有同步的需求可以写 true
    logging: false,
  }
} as MidwayConfig;
